package D240527;

import java.util.HashSet;
import java.util.Set;

public class SetTest {
    public static void main(String[] args) {
        Set<CustomObj> set = new HashSet<>();
        set.add(new CustomObj(1,"n1"));
        set.add(new CustomObj(2,"n2"));
        set.add(new CustomObj(1,"n1"));

    }
}
